package com.cqrt.entity;



import com.cqrt.constant.RTTableTypeConstant;
import com.ty.basic.entity.CTyEntityBaseDO;
import com.ty.basic.util.TyOtype;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigInteger;


/**
 * 计划与作业关联关系实体类
 * 对应数据库表: RT_PRJ_PLAN_JOB_LINK
 */
@Data
@Entity
@TyOtype(
        displayName = RTTableTypeConstant.TYPE_PLAN_JOB_LINK
)
@Table(name = "RT_PRJ_PLAN_JOB_LINK")
public class RTPlanJobLinkDO extends CTyEntityBaseDO {

    /**
     * 主键 OID
     */
    @Id
    @Column(name = "OID", nullable = false)
    private BigInteger oid;

    /**
     * 来源 OID
     */
    @Column(name = "PLANOID", nullable = false)
    private BigInteger planoid;

    /**
     * 计划 OID
     */
    @Column(name = "JOBOID", nullable = false)
    private BigInteger joboid;

    /**
     * 对象类型
     */
    @TyOtype(
            name = RTTableTypeConstant.TYPE_PLAN_JOB_LINK
    )
    @Column(name = "OTYPE", length = 50)
    private String otype=RTTableTypeConstant.TYPE_PLAN_JOB_LINK;


}